package com.itshen.controller;

import com.itshen.domain.dto.OrderDTO;
import com.itshen.result.Result;
import com.itshen.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    /*
    * 下单
    * */
    @PostMapping("place")
    public Result<String> place(@RequestBody OrderDTO orderDTO) {
        return orderService.place(orderDTO);
    }
}
